﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="department_assess.aspx.cs" Inherits="Xnjc_department_assess" %>


<%
    
    if ("charts".Equals(displayType))
    {
		
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh">
<head>
    <title>图表分析</title>

    <script>
        var resourceUri = "../images/resource/";
    </script>

    <script type="text/javascript" src="../ScriptFile/common.js"></script>

    <script type="text/javascript" src="../ScriptFile/java_class.js"></script>

    <script type="text/javascript" src="../ScriptFile/qx.js"></script>

    <script type="text/javascript" src="../ScriptFile/qxdutil.js"></script>

    <script>
	//你的程序要形成虚线之间这些内容，后面的程序会画出图表
	//---------------------------------------------------------
	var flashPath = "../penalty/";//flash所在的路径
	var secondsPerDay = <%=secondsPerDay%>;
	var chartSettings = 	[{
			data : null,
			config : {
				caption : "部门工作情况",
				subCaption : "",
				yaxisname : "执行数（件）",
				xaxisname : "执行人"
			}
		}
		
		];
	
	chartSettings[0].data = [
	<%
		for (int i = 0; i < alWorkStatus.Count; i++){
			System.Collections.Generic.Dictionary<string, string> m = 
			(System.Collections.Generic.Dictionary<string, string>)alWorkStatus[i];
			string name = m["USER_NAME"];
			string value_Renamed = m["CNT"];
			if (i != 0)
				Response.Write(",");
			
		%>
			{name : "<%=name%>",value : <%=value_Renamed%>}
		<%
		}
	%>
	];
	chartSettings[1].data = [
	<%
		for (int i = 0; i < alWorkStatus.Count; i++){
			System.Collections.Generic.Dictionary<string, string> m = 
			(System.Collections.Generic.Dictionary<string, string>)alWorkStatus[i];
			
			string name = m["USER_NAME"];
			string value_Renamed = m["TOTAL_TIME"];
			string cnt = m["CNT"];
			if (i != 0)
				Response.Write(",");
			
		%>
			{name : "<%=name%>",value : <%=value_Renamed%>*1.0/secondsPerDay/<%=cnt%>}
		<%
		}
	%>
	];
    </script>

</head>
<body>

    <script>
        document.write("<script type=\"text/javascript\" src=\"../scriptFile/chart.js?" + (new Date()).getTime() + "\"></" + "script>");
    </script>

</body>
</html>
<%
    return;
    }
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head  runat="server">
    <title>部门工作情况</title>

    <script language="Javascript">

        function mouseMove(trname) {
            return;
            var hidden3 = document.getElementById("hidden3");
            hidden3.value = trname.style.backgroundColor;
            trname.style.backgroundColor = '#caf7fd';
        }
        function mouseOut(trname) {
            return;
            var hidden3 = document.getElementById("hidden3");
            trname.style.backgroundColor = hidden3.value;
        }
    </script>

    <link href="../css/page.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <!--所有或在某个时间段内，某个部门所有人在某个流程中在各个岗位上的执行情况-->
    <%
        if (!"hist.userid".Equals(orderBy))
        {
		
    %>
    <table width="100%" cellspacing="0" cellpadding="0" align="center" border="0" class="tab">
        <tr>
            <th>
                岗位
            </th>
            <th>
                执行人
            </th>
            <th>
                数目
            </th>
            <th>
                平均用时
            </th>
            <th>
                详细
            </th>
        </tr>
        <%=strhtml        %>
    </table>
    <%
        }
        else
        {
		
    %>
    <table width="100%" cellspacing="0" cellpadding="0" align="center" border="0" class="tab">
        <tr>
            <th>
                执行人
            </th>
            <th>
                岗位
            </th>
            <th>
                数目
            </th>
            <th>
                平均用时
            </th>
            <th>
                详细
            </th>
        </tr>
        <%=strhtml        %>    </table>
    <%
        }
    %>
</body>
</html>

